﻿CREATE proc sp_xoanhomvt
@MaNhomVT int
as
declare @dem as int
select @dem=count(*) from DanhMucNhomVT where MaNhomVT=@MaNhomVT
if(@dem>0)
	begin
	delete DanhMucNhomVT where MaNhomVT=@MaNhomVT
	select ErrCode=1
	end
else	
	begin
	select ErrCode=0
	end